<script setup>
import { ref} from 'vue';
import ChildrenApp from './07-生命周期ChildrenApp.vue';
const isShow = ref(true)
const closeChildren = () => isShow.value = false
</script>
       
<template>
  <ChildrenApp v-if="isShow"/>
 <div>
    <button @click="closeChildren">关闭</button>
 </div>
</template>
       
<style scoped>
       
</style>